package publics.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Entity
@Table(name="balance")
public class Balance {//资产负债表
	
	private Integer id;//ID int not null,
	private Enterprise ent;
	private Boolean chooseTime;//年度还是当期 bool
	private Integer year;//负债表年份
	private Integer monthStart;//起始月份
	private Integer monthEnd;//结束月份
	
	private Integer type;//          年初余额还是期末余额（1上期，2本期）             int not null,
	private Float cash;//        货币资金             Float not null,
	private Float asset;//       交易性金融资产            float not null,
	private Float recNote;//    应收票据         Float not null,
	private Float recAccount; //应收账款         Float not null,
	private Float advPayment;// 预付款项        Float not null,
	private Float recInterest;//应收利息        Float not null,
	private Float recDividend;//应收股利        Float not null,
	private Float recOther;  // 其他应收款   Float not null,
	private Float inventory;   //存货                  Float not null,
	private Float assetOneYear;// 一年内到期的非流动资产      Float not null,
	private Float curAssetOther; // 其他流动资产 Float not null,
	private Float curAssetTotal; // 流动资产合计 Float not null,
	
	private Float saleAsset;         //  可供出售金融资产      Float not null,
	private Float matureInvest; //   持有至到期投资 Float not null,
	private Float recLong;         //    长期应收款        Float not null,
	private Float investLong;   //   长期股权投资  Float not null,
	private Float investProperty;//  投资性房地产 Float not null,
	private Float fixedAsset;        //  固定资产      Float not null,
	private Float accDepreciation;//     减：累计折旧 Float not null,
	private Float fixedAssetValue;//    固定资产净值 Float not null,
	private Float fixedAssetDep;//      减：固定资产减值准备  Float not null,
	private Float fixedAssetNbv;//      固定资产净额  Float not null,
	private Float consting;//            在建工程            Float not null,
	private Float constAsset;//      工程物资      Float not null,
	private Float disposalAsset;//   固定资产清理   Float not null,
	private Float biologicalAssets;//生产性生物资产 Float not null,
	private Float intangibleAsset;// 无形资产 Float not null,
	private Float development;//      开发支出      Float not null,
	private Float goodwill;//         商誉         Float not null,
	private Float dassetLong;//      长期待摊费用      Float not null,
	private Float deferredTax;//     递延所得税资产     Float not null,
	private Float nonCurAssetOther;//其他非流动资产 Float not null,
	private Float nonCurAssetTotal;//非流动资产合计 Float not null,
	private Float assetTotal;//      资产总计      Float not null,
	
	private Float borrowShort;// 短期借款  Float not null,
	private Float liab;//  交易性金融负债        Float not null,
	private Float payNote;//   应付票据        Float not null,
	private Float payAccount;//应付账款      Float not null,
	private Float advRec;//    预收款项          Float not null,
	private Float paySalary;// 应付职工薪酬       Float not null,
	private Float payTax;//    应交税费          Float not null,
	private Float payInterest;//应付利息     Float not null,
	private Float payDividend;//应付股利     Float not null,
	private Float payOther;//其他应付款       Float not null,
	
	private Float nonCurLiabOneYear;//一年内到期的非流动负债 Float not null,
	
	private Float curLiabOther;//其他流动负债 Float not null,
	private Float curLiabTotal;//流动负债合计 Float not null,
	
	private Float borrowLong;//长期借款  Float not null,
	private Float payBond ;//应付债券        Float not null,
	private Float payLong;//长期应付款         Float not null,
	private Float paySpecial;//专项应付款      Float not null,
	private Float payAdv;//预计负债          Float not null,
	private Float payDeferredTax;//递延所得税负债 Float not null,
	private Float nonCurLiabOther;//其他非流动负债 Float not null,
	private Float nonCurLiabTotal;//非流动负债合计 Float not null,
	private Float liabTotal;//负债合计  Float not null,
	
	private Float revCapital;//实收资本（或股本）      Float not null,
	private Float capitalSurplus;//资本公积  Float not null,
	private Float storeStock;//减：库存股    Float not null,
	private Float storeSpecial;//专项储备    Float not null,
    private Float surplusReserve;//盈余公积  Float not null,
	private Float undistributedProfit;//未分配利润 Float not null,
	private Float equityTotal;//所有者权益合计     Float not null,
	private Float liabEquityTotal;//负债和所有者权益合计  Float not null,
	@Id
	@GeneratedValue
	@Column(name="Bal_id")
	public Integer getId() {
		return id;
	}
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="Ent_id",nullable=false)
	public Enterprise getEnt() {
		return ent;
	}
	@Column(name="Bal_choose_time")
	public Boolean isChooseTime() {
		return chooseTime;
	}
	@Column(name="Bal_year")
	public Integer getYear() {
		return year;
	}
	@Column(name="Bal_month_start")
	public Integer getMonthStart() {
		return monthStart;
	}
	@Column(name="Bal_month_end")
	public Integer getMonthEnd() {
		return monthEnd;
	}
	@Column(name="Bal_type")
	public Integer getType() {
		return type;
	}
	@Column(name="Bal_cash")
	public Float getCash() {
		return cash;
	}
	@Column(name="Bal_asset")
	public Float getAsset() {
		return asset;
	}
	@Column(name="Bal_rec_note")
	public Float getRecNote() {
		return recNote;
	}
	@Column(name="Bal_rec_account")
	public Float getRecAccount() {
		return recAccount;
	}
	@Column(name="Bal_adv_payment")
	public Float getAdvPayment() {
		return advPayment;
	}
	@Column(name="Bal_rec_interest")
	public Float getRecInterest() {
		return recInterest;
	}
	@Column(name="Bal_rec_dividend")
	public Float getRecDividend() {
		return recDividend;
	}
	@Column(name="Bal_rec_other")
	public Float getRecOther() {
		return recOther;
	}
	@Column(name="Bal_inventory")
	public Float getInventory() {
		return inventory;
	}
	@Column(name="Bal_asset_1year")
	public Float getAssetOneYear() {
		return assetOneYear;
	}
	@Column(name="Bal_current_asset_other")
	public Float getCurAssetOther() {
		return curAssetOther;
	}
	@Column(name="Bal_current_asset_total")
	public Float getCurAssetTotal() {
		return curAssetTotal;
	}
	@Column(name="Bal_sale_asset")
	public Float getSaleAsset() {
		return saleAsset;
	}

	@Column(name="Bal_rec_long")
	public Float getRecLong() {
		return recLong;
	}

	@Column(name="Bal_investment_property")
	public Float getInvestProperty() {
		return investProperty;
	}
	@Column(name="Bal_fixed_asset")
	public Float getFixedAsset() {
		return fixedAsset;
	}
	@Column(name="Bal_acc_depreciation")
	public Float getAccDepreciation() {
		return accDepreciation;
	}
	@Column(name="Bal_fixed_asset_value")
	public Float getFixedAssetValue() {
		return fixedAssetValue;
	}
	@Column(name="Bal_fixed_asset_dep")
	public Float getFixedAssetDep() {
		return fixedAssetDep;
	}
	@Column(name="Bal_fixed_asset_nbv")
	public Float getFixedAssetNbv() {
		return fixedAssetNbv;
	}
	@Column(name="Bal_const")
	public Float getConsting() {
		return consting;
	}
	@Column(name="Bal_const_asset")
	public Float getConstAsset() {
		return constAsset;
	}
	@Column(name="Bal_disposal_asset")
	public Float getDisposalAsset() {
		return disposalAsset;
	}
	@Column(name="Bal_biological_assets")
	public Float getBiologicalAssets() {
		return biologicalAssets;
	}
	@Column(name="Bal_intangible_asset")
	public Float getIntangibleAsset() {
		return intangibleAsset;
	}
	@Column(name="Bal_development")
	public Float getDevelopment() {
		return development;
	}
	@Column(name="Bal_goodwill")
	public Float getGoodwill() {
		return goodwill;
	}

	@Column(name="Bal_deferred_tax")
	public Float getDeferredTax() {
		return deferredTax;
	}
	@Column(name="Bal_nonCurrent_asset_other")
	public Float getNonCurAssetOther() {
		return nonCurAssetOther;
	}
	@Column(name="Bal_nonCurrent_asset_total")
	public Float getNonCurAssetTotal() {
		return nonCurAssetTotal;
	}
	@Column(name="Bal_asset_total")
	public Float getAssetTotal() {
		return assetTotal;
	}
	@Column( name="Bal_borrowing_short")
	public Float getBorrowShort() {
		return borrowShort;
	}
	@Column(name="Bal_liability")
	public Float getLiab() {
		return liab;
	}
	@Column(name="Bal_pay_note")
	public Float getPayNote() {
		return payNote;
	}
	@Column(name="Bal_pay_account")
	public Float getPayAccount() {
		return payAccount;
	}
	@Column(name="Bal_adv_rec")
	public Float getAdvRec() {
		return advRec;
	}
	@Column(name="Bal_pay_salary")
	public Float getPaySalary() {
		return paySalary;
	}
	@Column(name="Bal_pay_tax")
	public Float getPayTax() {
		return payTax;
	}
	@Column(name="Bal_pay_interest")
	public Float getPayInterest() {
		return payInterest;
	}
	@Column(name="Bal_pay_dividend")
	public Float getPayDividend() {
		return payDividend;
	}
	@Column(name="Bal_pay_other")
	public Float getPayOther() {
		return payOther;
	}
	@Column(name="Bal_noncur_liability_1year")
	public Float getNonCurLiabOneYear() {
		return nonCurLiabOneYear;
	}
	@Column(name="Bal_current_liability_other")
	public Float getCurLiabOther() {
		return curLiabOther;
	}
	@Column(name="Bal_current_liability_total")
	public Float getCurLiabTotal() {
		return curLiabTotal;
	}
	@Column(name="Bal_borrowing_long")
	public Float getBorrowLong() {
		return borrowLong;
	}
	@Column(name="Bal_pay_bond")
	public Float getPayBond() {
		return payBond;
	}
	@Column(name="Bal_pay_long")
	public Float getPayLong() {
		return payLong;
	}
	@Column(name="Bal_pay_special")
	public Float getPaySpecial() {
		return paySpecial;
	}
	@Column(name="Bal_pay_adv")
	public Float getPayAdv() {
		return payAdv;
	}
	@Column(name="Bal_pay_deferred_tax")
	public Float getPayDeferredTax() {
		return payDeferredTax;
	}

	@Column(name="Bal_nonCurrent_liability_total")
	public Float getNonCurLiabTotal() {
		return nonCurLiabTotal;
	}
	@Column(name="Bal_liability_total")
	public Float getLiabTotal() {
		return liabTotal;
	}
	@Column(name="Bal_rev_capital")
	public Float getRevCapital() {
		return revCapital;
	}
	@Column(name="Bal_capital_surplus")
	public Float getCapitalSurplus() {
		return capitalSurplus;
	}
	@Column(name="Bal_storing_stock")
	public Float getStoreStock() {
		return storeStock;
	}
	@Column(name="Bal_store_special")
	public Float getStoreSpecial() {
		return storeSpecial;
	}
	@Column(name="Bal_surplus_reserve")
	public Float getSurplusReserve() {
		return surplusReserve;
	}
	@Column(name="Bal_undistributed_profit")
	public Float getUndistributedProfit() {
		return undistributedProfit;
	}
	@Column(name="Bal_equity_total")
	public Float getEquityTotal() {
		return equityTotal;
	}
	@Column(name="Bal_liability_equity_total")
	public Float getLiabEquityTotal() {
		return liabEquityTotal;
	}
	@Column(name="Bal_mature_investment")
	public Float getMatureInvest() {
		return matureInvest;
	}
	@Column(name="Bal_investment_long")
	public Float getInvestLong() {
		return investLong;
	}
	@Column(name="Bal_dasset_long")
	public Float getDassetLong() {
		return dassetLong;
	}
	@Column(name="Bal_noncurrent_liability_other")
	public Float getNonCurLiabOther() {
		return nonCurLiabOther;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setEnt(Enterprise ent) {
		this.ent = ent;
	}
	public void setChooseTime(Boolean chooseTime) {
		this.chooseTime = chooseTime;
	}
	public void setYear(Integer year) {
		this.year = year;
	}
	public void setMonthStart(Integer monthStart) {
		this.monthStart = monthStart;
	}
	public void setMonthEnd(Integer monthEnd) {
		this.monthEnd = monthEnd;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public void setCash(Float cash) {
		this.cash = cash;
	}
	public void setAsset(Float asset) {
		this.asset = asset;
	}
	public void setRecNote(Float recNote) {
		this.recNote = recNote;
	}
	public void setRecAccount(Float recAccount) {
		this.recAccount = recAccount;
	}
	public void setAdvPayment(Float advPayment) {
		this.advPayment = advPayment;
	}
	public void setRecInterest(Float recInterest) {
		this.recInterest = recInterest;
	}
	public void setRecDividend(Float recDividend) {
		this.recDividend = recDividend;
	}
	public void setRecOther(Float recOther) {
		this.recOther = recOther;
	}
	public void setInventory(Float inventory) {
		this.inventory = inventory;
	}
	public void setAssetOneYear(Float assetOneYear) {
		this.assetOneYear = assetOneYear;
	}
	public void setCurAssetOther(Float curAssetOther) {
		this.curAssetOther = curAssetOther;
	}
	public void setCurAssetTotal(Float curAssetTotal) {
		this.curAssetTotal = curAssetTotal;
	}
	public void setSaleAsset(Float saleAsset) {
		this.saleAsset = saleAsset;
	}
	public void setMatureInvest(Float matureInvest) {
		this.matureInvest = matureInvest;
	}
	public void setRecLong(Float recLong) {
		this.recLong = recLong;
	}
	public void setInvestLong(Float investLong) {
		this.investLong = investLong;
	}
	public void setInvestProperty(Float investProperty) {
		this.investProperty = investProperty;
	}
	public void setFixedAsset(Float fixedAsset) {
		this.fixedAsset = fixedAsset;
	}
	public void setAccDepreciation(Float accDepreciation) {
		this.accDepreciation = accDepreciation;
	}
	public void setFixedAssetValue(Float fixedAssetValue) {
		this.fixedAssetValue = fixedAssetValue;
	}
	public void setFixedAssetDep(Float fixedAssetDep) {
		this.fixedAssetDep = fixedAssetDep;
	}
	public void setFixedAssetNbv(Float fixedAssetNbv) {
		this.fixedAssetNbv = fixedAssetNbv;
	}
	public void setConsting(Float consting) {
		this.consting = consting;
	}
	public void setConstAsset(Float constAsset) {
		this.constAsset = constAsset;
	}
	public void setDisposalAsset(Float disposalAsset) {
		this.disposalAsset = disposalAsset;
	}
	public void setBiologicalAssets(Float biologicalAssets) {
		this.biologicalAssets = biologicalAssets;
	}
	public void setIntangibleAsset(Float intangibleAsset) {
		this.intangibleAsset = intangibleAsset;
	}
	public void setDevelopment(Float development) {
		this.development = development;
	}
	public void setGoodwill(Float goodwill) {
		this.goodwill = goodwill;
	}
	public void setDassetLong(Float dassetLong) {
		this.dassetLong = dassetLong;
	}
	public void setDeferredTax(Float deferredTax) {
		this.deferredTax = deferredTax;
	}
	public void setNonCurAssetOther(Float nonCurAssetOther) {
		this.nonCurAssetOther = nonCurAssetOther;
	}
	public void setNonCurAssetTotal(Float nonCurAssetTotal) {
		this.nonCurAssetTotal = nonCurAssetTotal;
	}
	public void setAssetTotal(Float assetTotal) {
		this.assetTotal = assetTotal;
	}
	public void setBorrowShort(Float borrowShort) {
		this.borrowShort = borrowShort;
	}
	public void setLiab(Float liab) {
		this.liab = liab;
	}
	public void setPayNote(Float payNote) {
		this.payNote = payNote;
	}
	public void setPayAccount(Float payAccount) {
		this.payAccount = payAccount;
	}
	public void setAdvRec(Float advRec) {
		this.advRec = advRec;
	}
	public void setPaySalary(Float paySalary) {
		this.paySalary = paySalary;
	}
	public void setPayTax(Float payTax) {
		this.payTax = payTax;
	}
	public void setPayInterest(Float payInterest) {
		this.payInterest = payInterest;
	}
	public void setPayDividend(Float payDividend) {
		this.payDividend = payDividend;
	}
	public void setPayOther(Float payOther) {
		this.payOther = payOther;
	}
	public void setNonCurLiabOneYear(Float nonCurLiabOneYear) {
		this.nonCurLiabOneYear = nonCurLiabOneYear;
	}
	public void setCurLiabOther(Float curLiabOther) {
		this.curLiabOther = curLiabOther;
	}
	public void setCurLiabTotal(Float curLiabTotal) {
		this.curLiabTotal = curLiabTotal;
	}
	public void setBorrowLong(Float borrowLong) {
		this.borrowLong = borrowLong;
	}
	public void setPayBond(Float payBond) {
		this.payBond = payBond;
	}
	public void setPayLong(Float payLong) {
		this.payLong = payLong;
	}
	public void setPaySpecial(Float paySpecial) {
		this.paySpecial = paySpecial;
	}
	public void setPayAdv(Float payAdv) {
		this.payAdv = payAdv;
	}
	public void setPayDeferredTax(Float payDeferredTax) {
		this.payDeferredTax = payDeferredTax;
	}
	public void setNonCurLiabOther(Float nonCurLiabOther) {
		this.nonCurLiabOther = nonCurLiabOther;
	}
	public void setNonCurLiabTotal(Float nonCurLiabTotal) {
		this.nonCurLiabTotal = nonCurLiabTotal;
	}
	public void setLiabTotal(Float liabTotal) {
		this.liabTotal = liabTotal;
	}
	public void setRevCapital(Float revCapital) {
		this.revCapital = revCapital;
	}
	public void setCapitalSurplus(Float capitalSurplus) {
		this.capitalSurplus = capitalSurplus;
	}
	public void setStoreStock(Float storeStock) {
		this.storeStock = storeStock;
	}
	public void setStoreSpecial(Float storeSpecial) {
		this.storeSpecial = storeSpecial;
	}
	public void setSurplusReserve(Float surplusReserve) {
		this.surplusReserve = surplusReserve;
	}
	public void setUndistributedProfit(Float undistributedProfit) {
		this.undistributedProfit = undistributedProfit;
	}
	public void setEquityTotal(Float equityTotal) {
		this.equityTotal = equityTotal;
	}
	public void setLiabEquityTotal(Float liabEquityTotal) {
		this.liabEquityTotal = liabEquityTotal;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Balance [accDepreciation=" + accDepreciation + ", advPayment="
				+ advPayment + ", advRec=" + advRec + ", asset=" + asset
				+ ", assetOneYear=" + assetOneYear + ", assetTotal="
				+ assetTotal + ", biologicalAssets=" + biologicalAssets
				+ ", borrowLong=" + borrowLong + ", borrowShort=" + borrowShort
				+ ", capitalSurplus=" + capitalSurplus + ", cash=" + cash
				+ ", chooseTime=" + chooseTime + ", constAsset=" + constAsset
				+ ", consting=" + consting + ", curAssetOther=" + curAssetOther
				+ ", curAssetTotal=" + curAssetTotal + ", curLiabOther="
				+ curLiabOther + ", curLiabTotal=" + curLiabTotal
				+ ", dassetLong=" + dassetLong + ", deferredTax=" + deferredTax
				+ ", development=" + development + ", disposalAsset="
				+ disposalAsset + ", ent=" + ent + ", equityTotal="
				+ equityTotal + ", fixedAsset=" + fixedAsset
				+ ", fixedAssetDep=" + fixedAssetDep + ", fixedAssetNbv="
				+ fixedAssetNbv + ", fixedAssetValue=" + fixedAssetValue
				+ ", goodwill=" + goodwill + ", id=" + id
				+ ", intangibleAsset=" + intangibleAsset + ", inventory="
				+ inventory + ", investLong=" + investLong
				+ ", investProperty=" + investProperty + ", liab=" + liab
				+ ", liabEquityTotal=" + liabEquityTotal + ", liabTotal="
				+ liabTotal + ", matureInvest=" + matureInvest + ", monthEnd="
				+ monthEnd + ", monthStart=" + monthStart
				+ ", nonCurAssetOther=" + nonCurAssetOther
				+ ", nonCurAssetTotal=" + nonCurAssetTotal
				+ ", nonCurLiabOneYear=" + nonCurLiabOneYear
				+ ", nonCurLiabOther=" + nonCurLiabOther + ", nonCurLiabTotal="
				+ nonCurLiabTotal + ", payAccount=" + payAccount + ", payAdv="
				+ payAdv + ", payBond=" + payBond + ", payDeferredTax="
				+ payDeferredTax + ", payDividend=" + payDividend
				+ ", payInterest=" + payInterest + ", payLong=" + payLong
				+ ", payNote=" + payNote + ", payOther=" + payOther
				+ ", paySalary=" + paySalary + ", paySpecial=" + paySpecial
				+ ", payTax=" + payTax + ", recAccount=" + recAccount
				+ ", recDividend=" + recDividend + ", recInterest="
				+ recInterest + ", recLong=" + recLong + ", recNote=" + recNote
				+ ", recOther=" + recOther + ", revCapital=" + revCapital
				+ ", saleAsset=" + saleAsset + ", storeSpecial=" + storeSpecial
				+ ", storeStock=" + storeStock + ", surplusReserve="
				+ surplusReserve + ", type=" + type + ", undistributedProfit="
				+ undistributedProfit + ", year=" + year + "]";
	}
	
	
	
	
}
